const BaseRest = require('../base.js');
module.exports = class extends BaseRest {
  async calculationAction() {
    this.allowMethods = 'post';
    const rs = await this.checkRules(['app_key', 'startAddress', 'endAddress', 'service_type']);
    if (rs.is) {
      return this.fail(rs.str);
    }
  }
};
